package de.fhaugsburg.games.boardgames.connect4.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import de.fhaugsburg.games.boardgames.Board;
import de.fhaugsburg.games.boardgames.Piece;
import de.fhaugsburg.games.boardgames.connect4.Connect4Board;
import de.fhaugsburg.games.boardgames.exceptions.GameException;

public class Connect4BoardTest {

	private Connect4Board board;
	private Piece piece1;

	@Before
	public void setUp() throws Exception {
		board = new Connect4Board(8, 8);
		piece1 = Piece.X;
	}

	@Test
	public void testPutPiecePieceInt() throws GameException {
		board.putPiece(piece1, 4);
		assertEquals(piece1, board.getPiece(7, 4));
	}

}
